<?php
class HelpEditAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'admin';
	}

	public function execute()
	{
		$helpService	= new HelpService();
		$id				= $this->context->get('id');
		if(is_numeric($id) && $id)
		{
			$this->data['help']	= $helpService->get($id);
		}
		$this->data['id']		= $id;
		
		$this->data['menu']		= 'default';
		$this->data['submenu']	= 'default_help';
	}
}
